/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.proteu.hibernate.beans;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;

/**
 *
 * @author ricardo
 */
@Entity
@Table(name="ATESTADOS")
public class AtestadosProteu {

    @Id
    @Column(name="ATT_ST_CODIGO")
    private String attStCodigo;
    @Column(name="PAC_ST_CODIGO")
    private String pacStCodigo;
    @Column(name="PAC_ST_NOME")
    private String pacStNome;
    @Column(name="AGD_DT_CONSULTA")
    @Temporal(javax.persistence.TemporalType.DATE)
    private Date agdDtConsulta;
    @Column(name="AGD_ST_HORA_CONSULTA")
    private String agdStHoraConsulta;
    @Column(name="ATT_ST_HORA_SAIDA")
    private String attStHoraSaida;
    @Column(name="MOT_ST_CODIGO")
    private String motStCodigo;
    @Column(name="CID")
    private String cid;
    @Column(name="ATT_CH_DISPENSA")
    private String attChDispensa;
    @Column(name="ATT_DT_INI_DISPENSA")
    @Temporal(javax.persistence.TemporalType.DATE)
    private Date attDtIniDispensa;
    @Column(name="ATT_DT_FIM_DISPENSA")
    @Temporal(javax.persistence.TemporalType.DATE)
    private Date attDtFimDispensa;
    @Column(name="MED_ST_CODIGO")
    private String medStCodigo;
    @Column(name="PROC_ST_CODIGO_AMB")
    private String procStCodigoAmb;


    public Date getAgdDtConsulta() {
        return agdDtConsulta;
    }

    public void setAgdDtConsulta(Date agdDtConsulta) {
        this.agdDtConsulta = agdDtConsulta;
    }

    public String getAgdStHoraConsulta() {
        return agdStHoraConsulta;
    }

    public void setAgdStHoraConsulta(String agdStHoraConsulta) {
        this.agdStHoraConsulta = agdStHoraConsulta;
    }

    public String getAttChDispensa() {
        return attChDispensa;
    }

    public void setAttChDispensa(String attChDispensa) {
        this.attChDispensa = attChDispensa;
    }

    public Date getAttDtFimDispensa() {
        return attDtFimDispensa;
    }

    public void setAttDtFimDispensa(Date attDtFimDispensa) {
        this.attDtFimDispensa = attDtFimDispensa;
    }

    public Date getAttDtIniDispensa() {
        return attDtIniDispensa;
    }

    public void setAttDtIniDispensa(Date attDtIniDispensa) {
        this.attDtIniDispensa = attDtIniDispensa;
    }

    public String getAttStCodigo() {
        return attStCodigo;
    }

    public void setAttStCodigo(String attStCodigo) {
        this.attStCodigo = attStCodigo;
    }

    public String getAttStHoraSaida() {
        return attStHoraSaida;
    }

    public void setAttStHoraSaida(String attStHoraSaida) {
        this.attStHoraSaida = attStHoraSaida;
    }

    public String getCid() {
        return cid;
    }

    public void setCid(String cid) {
        this.cid = cid;
    }

    public String getMedStCodigo() {
        return medStCodigo;
    }

    public void setMedStCodigo(String medStCodigo) {
        this.medStCodigo = medStCodigo;
    }

    public String getMotStCodigo() {
        return motStCodigo;
    }

    public void setMotStCodigo(String motStCodigo) {
        this.motStCodigo = motStCodigo;
    }

    public String getPacStCodigo() {
        return pacStCodigo;
    }

    public void setPacStCodigo(String pacStCodigo) {
        this.pacStCodigo = pacStCodigo;
    }

    public String getPacStNome() {
        return pacStNome;
    }

    public void setPacStNome(String pacStNome) {
        this.pacStNome = pacStNome;
    }

    public String getProcStCodigoAmb() {
        return procStCodigoAmb;
    }

    public void setProcStCodigoAmb(String procStCodigoAmb) {
        this.procStCodigoAmb = procStCodigoAmb;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final AtestadosProteu other = (AtestadosProteu) obj;
        if ((this.attStCodigo == null) ? (other.attStCodigo != null) : !this.attStCodigo.equals(other.attStCodigo)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 41 * hash + (this.attStCodigo != null ? this.attStCodigo.hashCode() : 0);
        return hash;
    }



}
